//
//  UIFactory.swift
//  SinaWeiBo
//
//  Created by tuyue on 16/3/13.
//  Copyright © 2016年 xueyang.co.ltd. All rights reserved.
//

import UIKit

class UIFactory {
    class func factoryLable(text:String,fontSize:CGFloat,textColor:UIColor,textAligment:NSTextAlignment = .Center) ->UILabel {
       let lb = UILabel.labelWith(text, fontSize: fontSize, textColor: textColor, textAlignment: textAligment )
        return lb
    }
    
    
    class func factoryButtonWithImage(imageName: String? ,backImageName: String? ) -> UIButton{
        let btn = UIButton.buttonWithImage(imageName, backImageName: backImageName)
        return btn
    }

    class func factoryButtonWithTitle(title: String,backImageName: String?,titleColor:UIColor,fontSize:CGFloat,imageName:String? = nil) -> UIButton{
     let btn = UIButton.buttonWithTitle(title , backImageName: backImageName, titleColor: titleColor, fontSize: fontSize, imageName: imageName)
    return btn
}

}
